from bs import *
from urllib.request import *
import re

# TEST
print("###### TEST START ######")

text = "javascript:fct_Cotent(\\\'11111\\\'), test(123), fct_Cotent(\\\'22222\\\'), test('1234')"
print("text : " + text)
#ms = re.compile('fct_Cotent\(\'\d+').findall("\xea\xb0 javascript:fct_Cotent('1111'), test(123), fct_Cotent('2222'), test('1234')")
ms = Helper.get_fct_content(str(text))
print("List : " + str(ms))

test_set = set()

for m in ms:
    final_m = m.replace("fct_Cotent(\\\'", "")
    print(content_url % int(final_m))
    test_set.add(content_url % int(final_m))

print(test_set)
#r = Requester("", "")
#r.open(login_url)
#r.open(board_url)

#print(str(r.read_data).encode('utf-8'))

del ms
#del r

print("###### TEST END  ######")

###############################################################################

bc = BoardCrawler("","")
bc.Sweep("")
print(board_content_urls)
